package com.itgaoshu.hospitalproject.service;

import com.itgaoshu.hospitalproject.bean.Baoque;
import com.itgaoshu.hospitalproject.bean.Drugstore;
import com.itgaoshu.hospitalproject.bean.Ypharmacy;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Service
public interface OutinstoreService {
    //查询报缺单
    List<Baoque> selbaoquedan();
    //根据补给单的名字查询对应的仓库药品
    List<Drugstore> selbaoquedrugname(Drugstore drugstore);
    //减去库存数量
    int deleteDrugsByshuliang(Drugstore drugstore);
    //直接出库添加药品表数据
    //出库药品前查询药品是否已存在
    int selpharymacyname(Ypharmacy ypharmacy);
    int addTopharmacy(Ypharmacy ypharmacy);
    int deleteDrugsByName(Drugstore drugstore);
    int seldrugnamenum(Drugstore drugstore);
    int uppharmacynumber(Drugstore drugstore);
    int uppharymacy(Ypharmacy ypharmacy);
    int selbaoquenamenum(Ypharmacy ypharmacy);
    int delbaoquenamenum();
    int selbaoquecount();
    int selbaoqueName(Ypharmacy ypharmacy);
    int upbaoquenumber1(Ypharmacy ypharmacy);
}

